var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var Schema = mongoose.Schema;

var UserSchema = new Schema({
	name:String,	
	count:Number,
	time:String,
	cateId:String,
	comment:String,
	commentCount:Number,
	date: { type: Date, default: Date.now }
})

UserSchema.plugin(mongoosePaginate);

module.exports = mongoose.model('Content',UserSchema,'content');